package com.caisejingyu.whales.home.devices.printer;


/**
 * Created by taoisym on 12/5/16.
 */
public class BeanReport {
    public int status;
    public long created_at;

    //public String detail;
    public enum MachineState {
        OK,
        NO_PRINTER,
        NO_PAPER,
        NO_INK,
        PRINT_ERROR,
        OFFLINE,
        SERVER_ERROR,
        STATE_KAZHI,
        STATE_OTHER,
    }

    public BeanReport() {

    }

    public BeanReport(MachineState reason) {
        this.status = reason.ordinal();
        created_at = System.currentTimeMillis();
    }

    public BeanReport(MachineState reason, String detail) {
        this.status = reason.ordinal();
        created_at = System.currentTimeMillis();
    }
}
